<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>后台管理</title>
    <link href="/Public/Admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Public/Common/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/base.css" rel="stylesheet">
    <script src="/Public/Common/js/jquery-1.9.1.min.js"></script>

</head>
<body>
<script type="text/javascript">
    var timerID = null, timerRunning = false;
    function stop_clock (){
        if(timerRunning)
            clearTimeout(timerID);
        timerRunning = false;}
    function start_clock () {
        stop_clock();
        showtime();}
    function showtime () {
        var now = new Date(), year = now.getFullYear(), month = now.getMonth(), day = now.getDate(), hours = now.getHours(), minutes = now.getMinutes(), seconds = now.getSeconds();
        var monthValue = year+"/"+(month+1)+"/"+day+"";
        document.getElementById('month').innerHTML = monthValue;
        var timeValue = "" +((hours >= 12) ? "PM " : "AM " );
        timeValue += ((hours >12) ? hours -12 :hours);
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
        document.getElementById('time').innerHTML = timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;
    }
    window.onload = function(){
        showtime();
    }
</script>
<header>
    <div class="row">
        <nav class="navbar" role="navigation">
            <div class="navbar-header">
                <div class="navbar-brand">
                    <a href=""><span class="logo">中盛美</span></a>
                </div>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav user-menu navbar-right">
                    <li>
                        <span href="" class="settings">
                            <span class="icon glyphicon glyphicon-home"></span>
                            <span class="txt">：<a href="<?php echo U('Home/Index/index');?>" target="_blank">网站首页</a></span>
                        </span>
                    </li>
                    <li>
                        <span href="" class="settings">
                            <span class="icon glyphicon glyphicon-user"></span>
                            <span class="txt">：<?php echo ($admin); ?></span>
                        </span>
                    </li>
                    <li>
                        <span href="" class="settings">
                            <span class="icon glyphicon glyphicon-calendar"></span>
                            <span class="txt"> ：<span id="month" class="txt"></span></span>
                        </span>
                    </li>
                    <li>
                        <span href="" class="settings">
                            <span class="icon glyphicon glyphicon-time"></span>
                            <span class="txt"> ：<span id="time" class="txt"></span></span>
                        </span>
                    </li>
                    <li class="last">
                        <a href="<?php echo U('Manager/logOut');?>" class="settings" target="_top" title="退出">
                            <span class="icon glyphicon glyphicon-off"></span>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>
    </div>
</header>
<script type="text/javascript" src="/Public/Admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/Admin/js/common.js"></script>
</body>
</html>